/*
 * @Author: wangzhichiao<https://github.com/wzc570738205>
 * @Date: 2020-03-27 15:52:44
 * @LastEditors: wangzhichiao<https://github.com/wzc570738205>
 * @LastEditTime: 2020-04-01 10:54:34
 */
import Router from '../router' 
export function isLogin() {
  let flag = sessionStorage.getItem("auth") ? true : false;
  if (!flag) {
    Router.push({
      name: "login",
      query:{type:'back'}
    });
  }
    return flag
}
export function isLoginFlag() {
  let flag = sessionStorage.getItem("auth") ? true : false;
    return flag
}

